package com.cosina.game.tank.model.impl;

import android.graphics.Point;

import com.cosina.game.tank.Constants;
import com.cosina.game.tank.ImageManager;
import com.cosina.game.tank.model.Tank;
import com.cosina.game.tank.model.War;
import com.cosina.game.tank.util.DirectionAdapter;


public class JusticeTank extends Tank {

	public JusticeTank(Point location,War war) {
		super(location,war);
	}

	@Override
	public boolean isEvil(){
		return false;
	}
	
	@Override
	public DirectionAdapter getImageAdapter(){
		return imageAdapter;
	}
	
	DirectionAdapter imageAdapter = new DirectionAdapter(){
		@Override
		public Object doDown() {
			return ImageManager.tankDown;
		}

		@Override
		public Object doLeft() {
			return ImageManager.tankLeft;
		}

		@Override
		public Object doRight() {
			return ImageManager.tankRight;
		}

		@Override
		public Object doUp() {
			return ImageManager.tankUp;
		}
	};

	@Override
	public int getSpeed() {
		return Constants.SELF_MOVE_SPEED;
	}
}
